import time

import pyttsx3
from datetime import datetime

from Commen.Types_operations import *
from Commen.log_logger import MyLog
from Commen import project_path

my_log = MyLog()


def Analog_speech(content):
    current_time = datetime.now().time()
    for i in range(5):
        engine = pyttsx3.init()
        time.sleep(2)
        engine.say(content)
        engine.runAndWait()
        my_log.info(Music + '-' + Awaken + '-播发了唤醒语音')


# Analog_speech(project_path.xh)
